package net.wangds.auth.account.filler;

import net.wangds.auth.user.comp.GeneralUserComp;
import net.wangds.auth.module.Account;
import net.wangds.auth.module.User;
import net.wangds.filler.AbstractFiller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AccountFiller extends AbstractFiller<Account> {

    @Autowired
    GeneralUserComp mmCmpUsr;

    @Override
    protected Class<Account> getTargetClass() {
        return Account.class;
    }

    @Override
    public void fill(Account target) {
        if(target==null){
            return;
        }
        target.setPassword("******");

        List<User> users = target.getUsers();




    }
}
